package edu.gatech.cs2340.thecyclonesquad;

import android.os.Build;
import android.os.Bundle;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;

public class LostPageActivity extends Activity {
	

	@SuppressLint("NewApi")
	@Override
	/**
	 * Initializes our activity.
	 */
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_lost_page);
		// Make sure we're running on Honeycomb or higher to use ActionBar APIs
		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
            // Show the Up button in the action bar.
            getActionBar().setDisplayHomeAsUpEnabled(true);
        }
	}


	@Override
	/**
	 * Initialize the contents of the Activity's standard options menu.
	 */
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_lost_page, menu);
		return true;
	}
	
	
	/**
	 * Goes to Lost Items List page.
	 * @param view is the basic building block for UI components
	 */
	public void access_lostItems(View view) {
		Intent intent = new Intent(this, LostItemsActivity.class);
		startActivity(intent);
	}

	
	/**
	 * Goes to add lost item page.
	 * @param view is the basic building block for UI components
	 */
	public void addLostItem(View view) {
		Intent intent = new Intent(this, AddLostItemActivity.class);
		startActivity(intent);		
	}

	/**
	 * logOut method logs the user out and goes back to login page.
	 * @param view is the basic building block for UI components
	 */
	public void logOut(View view) {
		Intent intent = new Intent(this, SignInActivity.class);
		startActivity(intent);			
	}

}
